export const formOptionAdd = {
  refreshBtn:false,
  columnBtn:false,
  addBtn:false,
  editBtn:false,
  menu:false,
  submitBtn: false,
  emptyBtn: false,
  column: [
      {
        span: 8,
        type: "month",
        label: "盘点时间",
        prop: "checkTime",
        disabled: false,
        format: 'yyyy-MM',
        valueFormat: 'yyyy-MM-dd HH:mm:ss'
      },
	  {
		  span: 8,
		  "type": "select",
		  "label": "站务人员",
		  "prop": "conductorName",
		  params: {
			userCodeKey: 'conductorJobNo'
		  },
		  component: 'user-select',		 
		  disabled:false
     }, 
     {
      span: 8,
	  "type": "input",
      "label": "站务人员工号",
	  labelWidth: 150,
      "prop": "conductorJobNo",
       disabled:false       
     }
  ]
}

export const tableOptionAddrz = {
  column: [{
    "type": "input",
    "label": "卡号",
    "prop": "cardOrder",
    cell: true,
  }, {
    "type": "input",
    "label": "类型",
    "prop": "ticketType",
    cell: true,
    hide:true,
  }]
}

export const tableOptionAddts = {
  column: [{
    "type": "input",
    "label": "卡号",
    "prop": "cardOrder",
    cell: true,
  }, {
    "type": "input",
    "label": "类型",
    "prop": "ticketType",
    cell: true,
    hide:true,
  }]
}

export const tableOptionAddyj = {
  sumColumnList: [
    {
      name: 'ticketNum',
      type: 'sum'
    }
  ],
  column: [{
    "type": "select",
    "label": "车票名称",
    "prop": "ticketName",
    cell: true,
    dicUrl:'/support/swpmticketcardtypeparam/dictAll/YJZP',
    props: {
      label: 'subName',
      value: 'id'
    },
  }, {
    "type": "number",
    "label": "张数",
    "prop": "ticketNum",
    cell: true,
  }]
}

export const tableOptionAddyx = {
  column: [{
    "type": "select",
    "label": "车票名称",
    "prop": "ticketName",
    cell: true,
    dicUrl:'/support/swpmticketcardtypeparam/dictAll/YXCP',
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    component: 'ticket-name-select',
    params: {
      ticketAmountKey: 'ticketPrice',
      ticketCountKey: 'ticketTimes'
    },
  }, {
    "type": "input",
    "label": "次数",
    "prop": "ticketTimes",
  },
  {
    "type": "number",
    "label": "金额",
    "prop": "ticketPrice",
    precision: 2,
  }, {
    "type": "number",
    "label": "张数",
    "prop": "ticketNum",
    cell: true,
  }]
}

export const tableOptionAddyz = {
  column: [{
    "type": "select",
    "label": "车票名称",
    "prop": "ticketName",
    cell: true,
    dicUrl:'/support/swpmticketcardtypeparam/dictAll/YZDCP',
    props: {
      label: 'subName',
      value: 'id'
    },
  }, {
    "type": "number",
    "label": "张数",
    "prop": "ticketNum",
    cell: true,
  } ]
}
